<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<style>
			#div1{
				width:100px;
				background: red;
				padding:50px;	
			}
		</style>
		<script>
			window.onload = function(){
				var oDiv = document.getElementById("div1");
				console.log(oDiv.style.width);
				console.log(oDiv.style.height);
				console.log(oDiv.style.padding);
				console.log(oDiv.style.background);
//				结论:通过style只能获取行内样式信息
			}
		</script>
	</head>
	<body>
		<div id="div1" style="height:150px;">
			
		</div>
	</body>
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
</html>
